class Employee 
{
public:
    void tenPercentRaise () 
    {
        _salary *= 1.1;
    }

    void fivePercentRaise () 
    {
        _salary *= 1.05;
    }
private:
    double _salary;
}
class Dollars
{
protected: 
    double baseCharge() 
    {
        double result = min(lastUsage(),100) * 0.03;
        if (lastUsage() > 100) {
            result += (min (lastUsage(),200) - 100) * 0.05;
        };
        if (lastUsage() > 200) {
            result += (lastUsage() - 200) * 0.07;
        };
        return result;
    }
private:
    double lastUsage()
    {
        return 300.0;
    }
    double min(double a, double b)
    {
        return a > b ? a : b;
    }
};
